package com.chen.yygh.msm.service;

import com.chen.yygh.vo.msm.MsmVo;
import org.apache.commons.mail.EmailException;
import org.springframework.stereotype.Service;

import javax.mail.MessagingException;

public interface MsmService {
    boolean sendByPhone(String phone, String code);

    boolean sendByEmail(String phone, String code) throws EmailException, MessagingException;

    boolean sendByPhoneMQ(MsmVo msmVo);
}
